import 'package:flutter/material.dart';
import 'package:video_player/video_player.dart';
import 'package:wallpaper/components/z_video/zsn_class.dart';

class ZsnProgess extends StatelessWidget {
  final VideoPlayerController controller;
  const ZsnProgess({super.key, required this.controller});

  @override
  Widget build(BuildContext context) {
    return Expanded(
      child: VideoProgressIndicator(
        controller,
        allowScrubbing: true,
        padding: EdgeInsets.all(5),
        colors: VideoProgressColors(
          backgroundColor: Colors.white,
          playedColor: ZsnClass().baseColor,
          bufferedColor: Colors.grey[500]!,
        ),
      ),
    );
  }
}
